using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace Comics.Providers
{
	public sealed class DataProviderSection : ConfigurationSection
	{
		/// <summary>
		/// A collection of registered providers.
		/// </summary>
		[ConfigurationProperty("providers")]
		public ProviderSettingsCollection Providers
		{
			get { return (ProviderSettingsCollection)base["providers"]; }
		}

		/// <summary>
		/// The name of the default provider
		/// </summary>
		[StringValidator(MinLength = 1)]
		[ConfigurationProperty("defaultProvider", DefaultValue = "MSSQLProvider")]
		public string DefaultProvider
		{
			get { return (string)base["defaultProvider"]; }
			set { base["defaultProvider"] = value; }
		}

	}
}
